package com.zhonghui.modlules.user.eshopDto;

import java.io.Serializable;

public class UserLevelInfoDto implements Serializable {
    private Integer id;
    private Integer addTime;
    private Double discount;
    private Integer levelId;
    private String name;
    private String icon;
    private Integer grade;

    public UserLevelInfoDto() {
    }

    public Integer getId() {
        return this.id;
    }

    public Integer getAddTime() {
        return this.addTime;
    }

    public Double getDiscount() {
        return this.discount;
    }

    public Integer getLevelId() {
        return this.levelId;
    }

    public String getName() {
        return this.name;
    }

    public String getIcon() {
        return this.icon;
    }

    public Integer getGrade() {
        return this.grade;
    }

    public void setId(final Integer id) {
        this.id = id;
    }

    public void setAddTime(final Integer addTime) {
        this.addTime = addTime;
    }

    public void setDiscount(final Double discount) {
        this.discount = discount;
    }

    public void setLevelId(final Integer levelId) {
        this.levelId = levelId;
    }

    public void setName(final String name) {
        this.name = name;
    }

    public void setIcon(final String icon) {
        this.icon = icon;
    }

    public void setGrade(final Integer grade) {
        this.grade = grade;
    }

    public boolean equals(final Object o) {
        if (o == this) {
            return true;
        } else if (!(o instanceof UserLevelInfoDto)) {
            return false;
        } else {
            UserLevelInfoDto other = (UserLevelInfoDto)o;
            if (!other.canEqual(this)) {
                return false;
            } else {
                label95: {
                    Object this$id = this.getId();
                    Object other$id = other.getId();
                    if (this$id == null) {
                        if (other$id == null) {
                            break label95;
                        }
                    } else if (this$id.equals(other$id)) {
                        break label95;
                    }

                    return false;
                }

                Object this$addTime = this.getAddTime();
                Object other$addTime = other.getAddTime();
                if (this$addTime == null) {
                    if (other$addTime != null) {
                        return false;
                    }
                } else if (!this$addTime.equals(other$addTime)) {
                    return false;
                }

                Object this$discount = this.getDiscount();
                Object other$discount = other.getDiscount();
                if (this$discount == null) {
                    if (other$discount != null) {
                        return false;
                    }
                } else if (!this$discount.equals(other$discount)) {
                    return false;
                }

                label74: {
                    Object this$levelId = this.getLevelId();
                    Object other$levelId = other.getLevelId();
                    if (this$levelId == null) {
                        if (other$levelId == null) {
                            break label74;
                        }
                    } else if (this$levelId.equals(other$levelId)) {
                        break label74;
                    }

                    return false;
                }

                label67: {
                    Object this$grade = this.getGrade();
                    Object other$grade = other.getGrade();
                    if (this$grade == null) {
                        if (other$grade == null) {
                            break label67;
                        }
                    } else if (this$grade.equals(other$grade)) {
                        break label67;
                    }

                    return false;
                }

                Object this$name = this.getName();
                Object other$name = other.getName();
                if (this$name == null) {
                    if (other$name != null) {
                        return false;
                    }
                } else if (!this$name.equals(other$name)) {
                    return false;
                }

                Object this$icon = this.getIcon();
                Object other$icon = other.getIcon();
                if (this$icon == null) {
                    if (other$icon != null) {
                        return false;
                    }
                } else if (!this$icon.equals(other$icon)) {
                    return false;
                }

                return true;
            }
        }
    }

    protected boolean canEqual(final Object other) {
        return other instanceof UserLevelInfoDto;
    }

    public int hashCode() {
        boolean PRIME = true;
        int result = 1;
        Object $id = this.getId();
        result = result * 59 + ($id == null ? 43 : $id.hashCode());
        Object $addTime = this.getAddTime();
        result = result * 59 + ($addTime == null ? 43 : $addTime.hashCode());
        Object $discount = this.getDiscount();
        result = result * 59 + ($discount == null ? 43 : $discount.hashCode());
        Object $levelId = this.getLevelId();
        result = result * 59 + ($levelId == null ? 43 : $levelId.hashCode());
        Object $grade = this.getGrade();
        result = result * 59 + ($grade == null ? 43 : $grade.hashCode());
        Object $name = this.getName();
        result = result * 59 + ($name == null ? 43 : $name.hashCode());
        Object $icon = this.getIcon();
        result = result * 59 + ($icon == null ? 43 : $icon.hashCode());
        return result;
    }

    public String toString() {
        return "UserLevelInfoDto(id=" + this.getId() + ", addTime=" + this.getAddTime() + ", discount=" + this.getDiscount() + ", levelId=" + this.getLevelId() + ", name=" + this.getName() + ", icon=" + this.getIcon() + ", grade=" + this.getGrade() + ")";
    }
}

